/**
 * 
 */
package cn.jdbc.service.invitation;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.jdbc.dao.invitation.InvitationMapper;
import cn.jdbc.pojo.Invitation;

/**
 * @author 你始终不懂
 * 
 */
@Service("InvitationService")
public class InvitationServiceImpl implements InvitationService {
	@Resource
	private InvitationMapper invitationMapper;

	@Override
	public List<Invitation> getInvitationList() {
		List<Invitation> invitationList = null;
		try {
			invitationList = invitationMapper.getInvitationList();
		} catch (Exception e) {
			e.printStackTrace();
		}
		return invitationList;
	}

	@Override
	public boolean deleteInvitation(int id) {
		boolean falg=false;
		try {
			if(invitationMapper.deleteInvitation(id)>0){
				falg=true;
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
		return falg;
	}
}
